using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using System.Threading;
using Antix.Mail.Smtp;

namespace Antix.Mail.Smtp.ServerForDevelopers
{
    public partial class ControlPanelForm : Form
    {
        public ControlPanelForm()
        {
            InitializeComponent();


            StatusHistoryBrowser.Url = new Uri(Application.UserAppDataPath);
        }

        #region Methods

        public void SetStatus(string value)
        {
            StatusTextBox.Text = value;
        }

        #endregion

        #region Form Events

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Show();
            this.Close();
        }

        private void showToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Show();
            this.WindowState = FormWindowState.Normal;
        }

        private void ControlPanelIcon_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            this.Show();
            this.WindowState = FormWindowState.Normal;
        }

        private void ControlPanelForm_Resize(object sender, EventArgs e)
        {
            if (this.WindowState == FormWindowState.Minimized)
            {
                this.Hide();
            }
        }

        #endregion

    }
}